﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true"
    CodeBehind="Rpt_passenger_bus.aspx.cs" Inherits="School.Pages.Bus.Rpt_passenger_bus" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table>
        <tr>
            <td colspan="4" nowrap="nowrap">
                <asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release">
                </asp:ScriptManager>
            </td>
        </tr>
        <tr>
            <td nowrap="nowrap" style="width: 41px">
                المجمع
            </td>
            <td nowrap="nowrap" colspan="3">
                <asp:DropDownList ID="ddCamp1" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                    DataTextField="Name" DataValueField="Id" Width="150px" OnSelectedIndexChanged="ddCamp1_SelectedIndexChanged">
                    <asp:ListItem Value="">-- أختيار --</asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="ddCamp1"
                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="-1" ValidationGroup="bu">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td nowrap="nowrap" style="width: 41px">
                الباص
            </td>
            <td nowrap="nowrap" align="right" colspan="3">
                <asp:DropDownList ID="ddlbus" runat="server" Width="150px" AppendDataBoundItems="True"
                    DataSourceID="OdsBus" DataTextField="Name" DataValueField="Id" AutoPostBack="True"
                    OnSelectedIndexChanged="ddlbus_SelectedIndexChanged">
                    <asp:ListItem Value="">-- أختيار --</asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="ddlbus"
                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="-1" ValidationGroup="bu">*</asp:RequiredFieldValidator>
                <asp:ObjectDataSource ID="OdsBus" runat="server" SelectMethod="GetBusByCamp" TypeName="School.Entities.Bus_Repository">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="ddCamp1" Name="Camp_Id" PropertyName="SelectedValue"
                            Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td nowrap="nowrap" style="width: 41px">
            </td>
            <td nowrap="nowrap" align="right" colspan="3">
                <rsweb:ReportViewer ID="rvpassenger" runat="server" Font-Names="Verdana" Font-Size="8pt"
                    Height="" InteractiveDeviceInfos="(Collection)" SizeToReportContent="True" WaitMessageFont-Names="Verdana"
                    WaitMessageFont-Size="14pt" Width="">
                    <LocalReport ReportPath="Bus\Report\passenger_bus.rdlc">
                        <DataSources>
                            <rsweb:ReportDataSource DataSourceId="odsReportBus" Name="passenger_bus" />
                            <rsweb:ReportDataSource DataSourceId="odsBusInfo" Name="GetBusInfo" />
                            <rsweb:ReportDataSource DataSourceId="odsReportBus_Temp" Name="Temp" />
                        </DataSources>
                    </LocalReport>
                </rsweb:ReportViewer>
                <asp:ObjectDataSource ID="odsBusInfo" runat="server" SelectMethod="GetBusInfo" TypeName="School.Entities.Bus_Repository">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="ddlbus" Name="bus_id" PropertyName="SelectedValue"
                            Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:ObjectDataSource ID="odsReportBus_Temp" runat="server" SelectMethod="GetStudentByBus_Temp"
                    TypeName="School.Entities.Bus_Repository">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="ddlbus" Name="bus_id" PropertyName="SelectedValue"
                            Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:ObjectDataSource ID="odsReportBus" runat="server" SelectMethod="GetStudentByBus"
                    TypeName="School.Entities.Bus_Repository">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="ddlbus" Name="bus_id" PropertyName="SelectedValue"
                            Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
        </tr>
    </table>
</asp:Content>
